Trò chơi đua xe động vật trong UNITY Engine
114.679 lượt xem;
- InterpolationExpIn.cs
- Interpolations /
- Bapk /
- Scripts /
- Assets /
- project /
1 using UnityEngine;
2 using System.Collections;
3
4 public class InterpolationExpIn : InterpolationExp {
5
6 public InterpolationExpIn(float value, float power) : base(value, power)
7 {
8 }
9
10 public override float apply(float a)
11 {
12 return (Mathf.Pow(value, power * (a - 1)) - min) * scale;
13 }
14 }
2 using System.Collections;
3
4 public class InterpolationExpIn : InterpolationExp {
5
6 public InterpolationExpIn(float value, float power) : base(value, power)
7 {
8 }
9
10 public override float apply(float a)
11 {
12 return (Mathf.Pow(value, power * (a - 1)) - min) * scale;
13 }
14 }